<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>借阅量统计</title>
	<meta name="decorator" content="default"/>
</head>
<body>
<form:form id="searchForm" modelAttribute="retBorrowCountByUserRolesDate" action="${ctx}/book/borrowed/borrowCountByUserRoles" method="post" class="breadcrumb form-search ">
	<ul class="ul-form">
		<li>
			<label>选择时间：</label>
			<input id="beginDate"  name="beginDate"  type="text" readonly="readonly" maxlength="20" class="input-medium Wdate" style="width:163px;"
				   value="<fmt:formatDate value="${retBorrowCountByUserRolesDate.beginDate}" pattern="yyyy-MM-dd"/>"
				   onclick="WdatePicker({dateFmt:'yyyy-MM-dd', maxDate:'#F{$dp.$D(\'endDate\')}'});"/>
			　--　
			<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate" style="width:163px;"
				   value="<fmt:formatDate value="${retBorrowCountByUserRolesDate.endDate}" pattern="yyyy-MM-dd"/>"
				   onclick="WdatePicker({dateFmt:'yyyy-MM-dd', minDate:'#F{$dp.$D(\'beginDate\')}'});"/>
		</li>
		<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" />
		<li class="clearfix"></li>
	</ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<thead>
	<tr>
		<th>读者角色（类型）</th>
		<th>借阅数量总计（册）</th>
	</thead>
	<tbody>

	<c:forEach items="${retBorrowCountByUserRolesList}" var="countlist">
		<tr>
			<td>${countlist.readerRoleName}</td>
			<td>${countlist.borrowed}</td>
		</tr>
	</c:forEach>
	</tbody>
</table>
</body>
</html>